Repository navigation
docs: add guide for dependency and lockfile changes - #374
Merged
ashrafee-dev merged 1 commit intoOct 25, 2026
Merged
Conversation
Explain that Python (uv.lock) and the docs site (docs/package-lock.json) have independent lockfiles. Show how to upgrade, add and remove a single package in each, how frozen installs behave, how to review lockfile diffs, and how to keep the Linux CPU PyTorch source. Closes ashrafee-dev#103
|
@bh-official is attempting to deploy a commit to the ashrafee-dev's projects Team on Vercel. A member of the Team first needs to authorize it. |
Owner
|
Thanks for your contribution! @bh-official |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #103
Outcome
Adds
docs/src/content/docs/contributing/dependency-changes.md. It explains thatuv.lockanddocs/package-lock.jsonare independent, and shows how to change one package in each without unrelated upgrades. It covers frozen installs, reviewing lockfile diffs, and keeping the Linux CPU PyTorch source. The sidebar is not edited, as the issue asks.Changes
Verification
Run with uv 0.12.19 (same as CI), npm 11.7.0, Node 22.17.1, on Windows. uv and npm commands from the page were run in scratch copies of
pyproject.toml/uv.lockanddocs/package*.json:uv lock --check: passed on the repo files; errored ("needs to be updated") afteruv add --no-sync --dev pytest-covchangedpyproject.tomlonly.uv lock --upgrade-package redis: "Updated redis v8.0.1 -> v8.1.0"; the lockfile diff only touched the redis entry.uv add --no-sync --devanduv remove --no-sync --devworked; thetool.uv.sourcestorch block was unchanged.npm update sharp --package-lock-only,npm install sharp@0.35 --package-lock-only,npm install --save-dev <pkg> --package-lock-onlyandnpm uninstall <pkg> --package-lock-onlyall edited only the manifest/lockfile.npm ciwith apackage.jsonthat does not match the lockfile fails with "Missing: ... from lock file".npm install --package-lock-only, npm 11.7.0 and 10.9.9) removed the"libc"entries; the page tells readers to watch for this.npm ciandnpm run buildindocs/: 14 pages built, including the new page.git diff --check: clean.Not verified:
uv sync --frozen/uv sync --dev --frozenandbash scripts/check.shwere not run (a full sync downloads PyTorch and Whisper); that behavior is fromuv sync --helpand the CI workflow. Linux and macOS were not tested. The page link check relied on the docs build only.Review notes
The
libcnote is from my own observation on Windows; please confirm it matches what you see on Linux. The page is not in the sidebar; maintainers can add it after merge.